/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.persistence.brokersInterface;

import java.util.List;
import systole.domain.clinicalInformation.Sport;
import systole.exceptions.ExceptionDAO;
import systole.synchronization.remote.entities.SportRemote;

/**
 *
 * @author Juan Manuel
 */
public interface SportSyncBroker {

    /**
     * 
     * @param sportRemote
     * @throws ExceptionDAO 
     */
    public void saveSportRemote(SportRemote sportRemote) throws ExceptionDAO; 

    /**
     * 
     * @return SportRemote list
     * @throws ExceptionDAO 
     */
    public List<SportRemote> getSportsToUpdate() throws ExceptionDAO;

    /**
     * 
     * @return
     * @throws ExceptionDAO 
     */
    public List<Sport> getSportsToUpload() throws ExceptionDAO;

    /**
     *
     * @param remoteId
     * @return
     * @throws ExceptionDAO
     */
    public Sport getSportByRemoteId(int remoteId) throws ExceptionDAO;

    /**
     * 
     * @param sport
     * @return
     * @throws ExceptionDAO
     */
    public SportRemote getSportRemoteFromSport(Sport sport) throws ExceptionDAO;

    /**
     * 
     * @return
     * @throws ExceptionDAO 
     */
    public int getLastRemoteSportIdSynchronized() throws ExceptionDAO;
}
